<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <title>MarkDown</title>
    <link rel="stylesheet" type="text/css" href="css/mark.css"/>
</head>
<body>
<textarea id="mark_input" oninput="get_layout()" style="width: 500px;height: 300px">

</textarea>
<div id="layout"></div>
</body>
<script type="text/javascript" src="js/mark.js"></script>
<script>
    function get_layout() {
        let val = $_('mark_input').value;
        let res = new Mark(val);
        res.Match();
    }
    function $_(id) {
        return document.getElementById(id);
    }
</script>
</html>